libxl: write IO ABI for disk frontends
authorWei Liu <wei.liu2@citrix.com>
Fri, 26 Apr 2013 10:11:37 +0000 (11:11 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 26 Apr 2013 14:55:10 +0000 (15:55 +0100)
commit0114d259ebcd1f87966e2849f6ac1af8d9dd89c5
treea0f3fe704328639c31bab95b2270192f6a1575ca
parent7259d4d3df40d273725b8c074f169b98846dec97
libxl: write IO ABI for disk frontends

This is a patch to forward-port a Xend behaviour. Xend writes IO ABI used for
all frontends. Blkfront before 2.6.26 relies on this behaviour otherwise guest
cannot boot when running in 32-on-64 mode. Blkfront after 2.6.26 writes that
node itself, in which case it's just an overwrite to an existing node which
should be OK.

In fact Xend writes the ABI for all frontends including console and vif. But
nowadays only old disk frontends rely on that behaviour so that we only write
the ABI for disk frontends in libxl, minimizing the impact.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_dom_arm.c
tools/libxc/xc_dom_x86.c
tools/libxc/xenctrl.h
tools/libxl/libxl.c